<ui:composition template="/templates/template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="title">
       Fechamento de O.S
    </ui:define>

	<ui:define name="conteudo">
		<h:head>
			<h:form>
				<p:panel id="panel" header="Fechamento de O.S"
					style="margin-bottom:10px; width:80%; ">

					<div>
						<p:messages id="msgs" showDetail="true" />
					</div>

					<h:panelGrid>
						<div>
							<h:outputLabel value="Nome:" for="nome" />
							<p:inputText id="nome" value="#{cadastroMB.nome}" />
							<p:message for="nome" />
						</div>

					</h:panelGrid>
					<div align="right">
						<p:commandButton value="Salvar"
							actionListener="#{cadastroMB.salvar}" ajax="true" update="msgs" />
					</div>
				</p:panel>

			</h:form>
		</h:head>
	</ui:define>
</ui:composition>